<template>
<div>
    <h2>二手爆款</h2>
    <div class="con">
        <div v-for="(item,index) in arr" :key="index" class="item">
            <img :src="item" alt="">
        </div>
    </div>
</div>
    
</template>

<script>
import {one} from "@/api/topapi.js"
export default {
    data(){
        return{
            arr:[]
        }
    },
    mounted(){
        one().then((ok)=>{
           this.arr=ok.data.two
        })
    }
}
</script>

<style scoped>
    h2{
        height: 0.4rem;
        width: 100%;
        font-size:0.18rem ;
        color: #333;
        margin-bottom: 0.1rem;
    }
    .con{
        display: flex;
        /* flex-wrap: wrap; */
        overflow-x: auto;
    }
    img{
        width: 1.55rem;
        height: 2.09rem;
        margin-right: 0.05rem;
    }
</style>